package com.example.mapper;


import com.example.pojo.CompanyPolicy;
import com.example.pojo.ConditionsQuery;
import com.example.pojo.DrugCompany;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DrugCompanyMapper {
    List<DrugCompany> getCompanyList(@Param("cq") ConditionsQuery cq);

    int insert(@Param("drugCompany") DrugCompany drugCompany);

    int update(@Param("drugCompany") DrugCompany drugCompany);

    DrugCompany getDrugCompanyById(@Param("id") int id);

    int delById(@Param("id")int id);

    int delBatch(@Param("ids") List<Integer> idList);

    List<CompanyPolicy> getCompanyPolicyList(@Param("cq") ConditionsQuery conditionsQuery);

    int insertCompanyPolicy(@Param("cp") CompanyPolicy companyPolicy);

    CompanyPolicy getCompanyPolicyById(@Param("id")int id);

    int delCompanyPolicyById(@Param("id")int id);

    int delCompanyPolicyBatch(@Param("ids")List<Integer> idList);

    int updateCompanyPolicy(@Param("cp")CompanyPolicy companyPolicy);

    List<DrugCompany> getList();
}
